package com.zhh.mapper;
import org.apache.ibatis.annotations.Param;
import com.zhh.model.EbComment;

import java.util.List;

public interface CommentMapper {
    /**分页查询
     *
     * @param from 页数
     * @param pageSize 每条页数
     * @return
     */
    List<EbComment> findByPage(@Param("from") Integer from, @Param("pageSize") Integer pageSize);

    /**插入
     *
     * @param ebComment 留言表
     * @return
     */
    int save(EbComment ebComment);

    /**删除
     *
     * @param ECId 用户id
     * @return
     */
    int remove(int ECId);
    Integer updateByPrimaryKey(EbComment ebComment);//更新
}

